//
// C++ Interface: spin
//
// Description: 
//
//
// Author: Os3 s.r.l. <xgui@os3.it>, (C) 2005
//
// Copyright: See COPYING file that comes with this distribution
//
//

namespace xgui
{
    %feature("docstring","derives from :class:`xgui.WidgetClass` ") SpinClass;
	struct SpinClass : public xgui::WidgetClass
	{
		SpinClass();
		std::string const &className();
		bool isInstanceable();
		xgui::Object * create(xgui::Object * parent, xgui::StringMap &properties);
	};

    %feature("docstring","derives from :class:`xgui.Widget` \n\n**PROPERTIES**\n\n* **value** *(RW):* sets or retrieves the current spin box value.\n\n* **min** *(RW):* sets or retrieves the minimum spin box value. default: \"0\"\n\n* **max** *(RW):* sets or retrieves the maximum spin box value. default: \"100\"\n\n**EVENTS**\n\n* **onchange** *(linked to* :class:`xgui.TextCallback` *):* fired when the spin box value changes.the string parameter passed to the callback function is the new spin box value. Returning *xgui::EVT_BLOCK* from the callback function prevents the value to change.\n\n* **onsubmit** *(linked to* :class:`xgui.TextCallback` *):* fired when the enter key is pressed while the spin widget has the keyboard focus. the string parameter passed to the callback function is the spin box value") Spin;
	class Spin : public xgui::Widget
	{
		protected:
			Spin(xgui::Container * parent, int min, int max);
			virtual ~Spin();
	};
}

%extend xgui::Spin {
	%pythoncode {
		def __del__(self):
			if self.valid: self.delPyOwner(self)
	}
}

